CC = g++
AP_INC = -isystem /mnt/e/Xilinx/Vivado/2020.2/include/

# $(CC) -o $@ $< -O2 -W -L/usr/local/lib/ -lcnpy -lz -lm --std=c++11 -I/mnt/e/Xilinx/Vivado/2019.1/include/
# $(CC) -o $@ $< -O2 -Wall -L/usr/local/lib/ -lcnpy -lz -lm --std=c++11 -isystem /mnt/e/Xilinx/Vivado/2019.1/include/ -Wall -Wno-unknown-pragmas

test.exe: test.o skynet_flow.o
	$(CC) -o $@ $^ -O2 -Wall -lcnpy -lz -lm --std=c++11 $(AP_INC) -Wall -Wno-unknown-pragmas
test.o: test.cpp
	$(CC) -o $@ -c $< -O2 -Wall -lcnpy -lz -lm --std=c++11 $(AP_INC) -Wall -Wno-unknown-pragmas
skynet_flow.o: skynet_flow.cpp
	$(CC) -o $@ -c $< -O2 -Wall -lcnpy -lz -lm --std=c++11 $(AP_INC) -Wall -Wno-unknown-pragmas

.PHONY: clean
clean:
	rm *.o test.exe
